import Vue from 'vue'
import App from './App'
import store from './store'
import api from './api/api.config.js'
import {httpRequest} from './request/http-request.js'
// main.js，注意要在use方法之后执行
import uView from 'uview-ui'
Vue.use(uView)
// 如此配置即可
uni.$u.config.unit = 'rpx'
//接口地址
Vue.prototype.$api = api
//封装的请求方法挂载到全局
Vue.prototype.$httpRequest = httpRequest
//将store挂载到全局
Vue.prototype.$store = store; 

Vue.config.productionTip = false
App.mpType = 'app'


const app = new Vue({
	...App,
	store //将store挂载到vue全局实例上
})
app.$mount()